<include file="leftBar" />
  <div class="mainBar fl" style="">
  		<h2>设置</h2>
  		<div class="avatarSetting">
			<h5>头像设置</h5>
			<div class="tip" id="uploadAvatarTip" style="padding: 0;height: 26px;width: 445px;margin-left: 10px;"></div>
			<form action="__URL__/cropAvatar" method="post" id="pic" style="padding:10px;" onsubmit="return post_form('__URL__/cropAvatar',this,'uploadAvatarTip');">
				<div class="uploadArea">
					<input type="file" id="userPic">
					<div class="fileTips">支持JPG,PNG,GIF，图片小于1MB，尺寸不小于100*100，真实高清头像更受欢迎！</div>
					<div class="preview hidden" id="previewHidden"></div>
				</div>
				<div class="previewArea">
					<input type="hidden" id="x" name="x" />
					<input type="hidden" id="y" name="y" />
					<input type="hidden" id="w" name="w" />
					<input type="hidden" id="h" name="h" />
					<input type="hidden" id='imgSrc' name='src'/>
					<div class="tCrop">头像预览</div>
					<div class="crop crop100"><img id="cropPreview100" src="<{$userInfo.avatar.100}>" alt=""></div>
					<div class="crop crop50"><img id="cropPreview50" src="<{$userInfo.avatar.50}>" alt=""></div>
					<div class="operaArea clearfix">
					<input type="button" class="btn savePic" value="保存">
					<input type="button" class="btn reuploadImg" onclick="javascript:$('#userPic').uploadify('cancel','*');" value="重新上传">
					</div>
				</div>
			</form>
		</div>
		<div class="infoSetting" style="margin-bottom:50px;">
			<h5>资料设置</h5>
				<div class="tip" id="updateInfoTip" style="padding: 0;height: 26px;width: 410px;margin-left: 10px;"></div>
				<form method="post" action="__URL__/saveSetting" onsubmit="return post_form('__URL__/saveSetting',this,'updateInfoTip');" style="padding:0 10px;">
					<p><label for="editName">姓名</label></p>
					<p><input id="editName" type="text" placeholder="姓名"  name="name" class="text" value="<{$userInfo.name}>"  /></p>
					<p style="margin-top:10px;"><label>性别</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="male" name="sex" class="radio" value="1"<?php if($userInfo['sex']==1) echo ' checked'; ?> /><label for="male">男</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="female" class="radio" name="sex" value="2"<?php if($userInfo['sex']==2) echo ' checked'; ?> /><label for="female">女</label></p>
					<p><label for="editMobile">手机</label></p>
					<p><input id="editMobile" type="text" placeholder="手机号"  name="mobile" class="text" value="<?php echo isEmpty($userInfo['mobile'])? '' : $userInfo['mobile']; ?>"  /></p>
					<p><label for="editSite">网站</label></p>
					<p><input id="editSite" type="text" placeholder="网站"  name="site" class="text" value="<{$userInfo.site}>"  /></p>
					<p><label for="editAddress">地址</label></p>
					<p><input id="editAddress" type="text" placeholder="地址"  name="address" class="text" value="<{$userInfo.address}>"  /></p>
					<p><label for="editZip">邮编</label></p>
					<p><input id="editZip" type="text" placeholder="邮编"  name="zip" class="text" value="<?php echo isEmpty($userInfo['zip'])? '' : $userInfo['zip']; ?>"  /></p>
					<p><label for="editIntro">简介</label></p>
					<p><textarea id="editIntro" placeholder="简介"  name="intro" class="text"><{$userInfo.intro}></textarea></p>
					<p><input type="submit" value="保存" class="btn" style="width:413px;" /></p>
				</form>
		</div>
		<div class="pwdSetting" style="margin-bottom:50px;">
			<h5>修改密码</h5>
				<div class="tip" id="pwdSettingTip" style="padding: 0;height: 26px;width: 410px;margin-left: 10px;"></div>
				<form method="post" action="__URL__/changePwd" onsubmit="return post_form('__URL__/changePwd',this,'pwdSettingTip');" style="padding:0 10px;">
					<p><label for="currentPassword">原密码</p>
					<p></label><input id="currentPassword" type="password"  name="currentPassword" placeholder="原密码" class="text" /></p>
					<p><label for="newPassword">新密码</p>
					<p></label><input id="newPassword" type="password"  name="newPassword" placeholder="密码" class="text" /></p>
					<p><label for="rePassword">确认密码</p>
					<p></label><input id="rePassword" type="password"  name="rePassword" placeholder="再输一次新密码" class="text" /></p>
					<p><input type="submit" value="修改密码" class="btn" style="width:413px;margin-top:10px;" /></p>
				</form>
		</div>
		<div class="mailSetting" style="margin-bottom:50px;">
			<h5>修改邮箱</h5>
				<div class="tip" id="mailSettingTip" style="padding: 0;height: 26px;width: 410px;margin-left: 10px;"></div>
				<form method="post" action="__URL__/changeMail" onsubmit="return post_form('__URL__/changeMail',this,'mailSettingTip');" style="padding:0 10px;">
					<p style="font-size:12px;color:#666;">邮箱是您帐号丢失后找回的唯一凭证，为了您的帐号安全，<br />我们将分别发送两封邮件到您的当前邮箱和新邮箱中进行验证。请慎重更换。</p>
					<p>当前邮箱：<{$userInfo.email}></p>
					<p><label for="newMail">新邮箱</p>
					<p></label><input id="newMail" type="email"  name="newMail" placeholder="密码" class="text" /></p>
					<p><input type="submit" value="验证邮箱" class="btn" style="width:413px;margin-top:10px;" onclick="return showTip('#mailSettingTip','正在发送请求，请稍后...',0);" /></p>
				</form>
		</div>
  </div>
  </div>
<include file="Public:footer" />